<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <title>建议使用信管帮APP</title>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        html,body{
            height: 100%;
        }
        ul li{
            list-style: none;
        }
        a{
            text-decoration: none;
            
        }
        a:link{
            color: #404040;
        }
        a:visited{
            color: #404040;
        }
        a:hover{
            color: #404040;
        }
        a:active{
            color: #404040;
        }
        ::-webkit-scrollbar{
            /* width: 0; 移动端取消滚动条无效*/
            display: none;
        }
        body{
            background: #ededed;/*#2493f1*/
            display: flex;
            flex-direction: column;
            font-family: 微软雅黑;
            font-size: .3865rem;
            letter-spacing: .0169rem;
            position: relative;
            overflow: hidden;/*禁止上下滑动*/
            -webkit-user-select:none;
            -moz-user-select:none;
            -ms-user-select:none;
            user-select:none;
            perspective: 24.1546rem;
        }
        
        section{/*
            border: 1px solid red;*/
            border-top-left-radius:  .3623rem;
            border-top-right-radius:  .3623rem;
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            overflow: hidden;
        }
        
        section .content{
            width: 100%;
            flex: 1;
            overflow: hidden;
            background: #fff;
        }


        body header .title{
            display: flex;
            flex-direction: row;
            justify-content: center;
            align-items: center;
            width: 7rem;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            height: .5556rem;
            font-size: .4106rem;
            font-weight: 600;
            letter-spacing: .025rem;
            position: absolute;
            /* bottom: .3382rem; */
            left: 50%;
            transform: translateX(-3.5rem);
        }
        
    </style>
    <link rel="stylesheet" href="./css/header.css">
    <link rel="stylesheet" href="./css/search.css">
    <!-- 引入样式文件 -->
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/vant@2.2/lib/index.css" referrerpolicy="no-referrer"/>
    
    <script src="../../../../lib/vue.js"></script>
    <script src="../../../../lib/axios.js"></script>
    <script src="../../../../lib/jquery.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/vant@2.2/lib/vant.min.js" referrerpolicy="no-referrer"></script>
    
    
</head>
<body>
    <section>
        <!-- header -->
        <header>
            <div class="backBtn"></div>
            <div class="left"></div>
            <span class="title title2">
                新的朋友
            </span>
        </header>
        
        
        <div class="content">
            <!-- 搜索框 -->
            <div>
                <van-search v-model="search_value" :show-action="showAction" placeholder="账号/学号/手机号/邮箱" @search="onSearch" @cancel="onCancel" @focus="onFocus"/>
            </div>
            <!-- 申请列表 -->
            <ul class="msgul ul1">
                <li v-for="(item, index) in applicantList">
                    <div class="left">
                        <div class="userImg">
                            <img :src="item.userImg !== '' ? item.userImg : '../../../images/person/person_senter/defaultUserImg.webp'" alt="">
                            <!-- <img src="" alt=""> -->
                        </div>
                        <span>
                            <span class="name">{{item.name}}</span>
                            <span>我是{{item.name}}</span>
                        </span>
                    </div>
                    <div class="right" @click="agree(item.userid)">
                        <button>接受</button>
                    </div>
                </li>
            </ul>
            

            
        
            
        
    </section>
    <style>
        .ul1 {
            width: 100%;
            display: flex; 
            flex-direction: column;
            justify-content: center;
        }
        .ul1 li{
            width: 100%;
            display: flex;
            flex-direction: row;
            align-items: center;
            justify-content: flex-start;
            border-bottom: .0121rem solid #ececec;

        }
        .ul1 li .left{
            width: 80%;
            height: 1.6908rem;
            display: flex;
            flex-direction: row;
            justify-content: flex-start;
            align-items: center;

        }
        .ul1 li .left .userImg{
            border-radius: .1208rem;
            width: 1.0145rem;
            height: 1.0145rem;
            overflow: hidden;
            margin: 0 .2415rem;
            background: #ededed8c;
        }
        .ul1 li .left>span{
            width: 77%;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: flex-start;
        }
        .ul1 li .left>span .name{
            max-width: 90%;
            white-space: nowrap;
            text-overflow: ellipsis;
            overflow: hidden;
            font-size: .4106rem;
            margin-right: .1208rem;
            margin-bottom: .0242rem;
        }
        .ul1 li .left>span span:nth-child(2){
            font-size: .3744rem;
            color: #5a5a5ac3;
            max-width: 90%;
            white-space: nowrap;
            text-overflow: ellipsis;
            overflow: hidden;
        }
        .ul1 li .left .userImg img{
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center;
        }
        .ul1 li .right{
            height: 100%;
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: center;
            
        }
        .ul1 li .right button{
            all: unset;
            border: none;
            border-radius: .1208rem;
            background: #07C062;
            color: #fff;
            width: 1.4493rem;
            height: .7971rem;
            font-size: .3865rem;
            display: flex;
            align-items: center;
            justify-content: center;
            position: absolute;
            right: .3623rem;

        }
        
    </style>

    <script src="https://cdn.jsdelivr.net/npm/vant@2.2/lib/vant.min.js" referrerpolicy="no-referrer"></script>
    <script src="./js/main.js"></script>
    <script>
        document.querySelector(".backBtn").onclick=function(){
            window.history.go(-1)
        }
    </script>
    
    <script>
        //根据设备宽度计算html的font-size
        function resetHtmlFont(){
            //获取html对象并动态设置font-size = 设备宽度的1/10
            document.documentElement.style.fontSize = screen.width/10 + 'px';
        }
        //执行一下
        resetHtmlFont();
        //如果窗口大小改变了，则重新计算基础font-size
        window.onresize = resetHtmlFont;
    </script>
</body>
</html>